package com.github.codemperor.core.schedule.example;

import com.github.codemperor.core.schedule.BaseEmScheduler;
import com.github.codemperor.core.schedule.db.EmSchedulerManager;

// when you use, let go of the annotation
//@Component
public class TestJobExample extends BaseEmScheduler {
    @Override
    protected Config config() {
        return new Config().setCron("0/5 * * * * ?").setClassz(this.getClass()).setDesc("测试");
    }

    @Override
    protected void service(EmSchedulerManager emSchedulerManager) {
        //todo your service
    }
}
